import { createRouter, createWebHistory } from "vue-router";
const routes = [
  {
    path: "/",
    name: "HelloWorld",
    component: () => import("@/components/HelloWorld.vue"),
  },
  {
    path: "/test1",
    name: "test_1",
    component: () => import("../view/test1.vue"),
  },
  {
    path: "/test2",
    name: "test_2",
    component: () => import("../view/test2.vue"),
  },
  {
    path: "/importSheet",
    name: "ImportSheet",
    component: () => import("../view/ImportSheet.vue"),
  },
  {
    path: "/SerialPort",
    name: "SerialPort",
    component: () => import("../view/SerialPort.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
